/*
 * @Author: DUST
 * @Date: 2023-06-28 11:37:08
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-28 14:44:11
 * @FilePath: \koa-node-ts\app\router\website.ts
 * @Description: 
 * undefined
 */
import koaRouter from "koa-router";
import WebsiteController from "../controller/WebsiteController";

const websiteRouter = new koaRouter();

websiteRouter.prefix("/website");

// 获取网站列表
websiteRouter.get("/list", WebsiteController.getWebsitePage);
// 新增网站
websiteRouter.post("/add", WebsiteController.addWebsite);
// 新增网站
websiteRouter.put("/edit", WebsiteController.editWebsite);
// 删除网站
websiteRouter.delete("/delete/:id", WebsiteController.deleteWebsite);

export default websiteRouter;